home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3749 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: comma.rhein.de!yaps!arno
  2. From: arno@yaps.rhein.de (Arno Eigenwillig)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: x ^= y ^= x ^= y;
  5. Message-ID: <3Du8y*20g@yaps.rhein.de>
  6. Date: Fri, 23 Feb 1996 20:51:15 +0100
  7. References: <1286.6624T1439T237@cs.ruu.nl>
  8. Organization: Yet Another Private Site in Meckenheim, Germany
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Copyright: This article may not be distributed on a CD-ROM
  13.  or in printed form without prior written consent of the author.
  14. X-Newsreader: Arn V 1.04
  15.  
  16. In article <1286.6624T1439T237@cs.ruu.nl>, Wessel Dankers writes:
  17.  
  18. > Which can of course be rewritten as:
  19. >  x ^= y;
  20. >  y ^= x;
  21. >  x ^= y;
  22.  
  23. Yes.
  24.  
  25. > or if you want it real fancy:
  26. >  x ^= y ^= x ^= y;
  27.  
  28. No. Reread your C text book and find out about sequence points, side
  29. effects, and which combinations of them are not allowed.
  30.  
  31. -- __
  32. __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key available.
  33. \XX/   V+49-2225-5870  /\ <Arnooo @ #amigager> \/ MIME 8bit welcome.
  34.